using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace Healinker.Entities
{
    public partial class Disease
    {
        [Key]
        public int Id { get; set; }

        [ForeignKey("DiseaseClass")]
        public int DiseaseClassId { get; set; }

        [ForeignKey("CodeClass")]
        public int CodeClassId { get; set; }

        [Required, StringLength( 255 )]
        public string Name { get; set; }

        [Required, StringLength( 25 )]
        public string ICDCode { get; set; }

        [Required, StringLength( 20 )]
        public string QueryCode { get; set; }

        [StringLength( 255 )]
        public string AliasName { get; set; }

        public virtual DiseaseClass DiseaseClass { get; set; }
        public virtual CodeClass CodeClass { get; set; }
        public virtual ICollection<DiseaseCause> DiseaseCauses { get; set; }
        public virtual ICollection<Treatment> Treatments { get; set; }
        public virtual ICollection<LinkArticle> LinkArticles { get; set; }
    }
}
